'use strict';
const request = require('request');

request(`https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${APPID}&secret=${APPSECRET}`, (err, response, body) => {
  if (err) {
    console.log(err);
  }
  console.log(body);
});